package com.zx.erp.repo.mapper;

import com.zx.erp.repo.bean.CkWarehouse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Date;
import java.util.List;

/**
 * 出库Dao接口
 *
 * @author Jerry
 */
@Mapper
@Repository
public interface CkWarehouseDao {
    /**
     * 查询所有出库
     * 【仓库名称、订单编号、状态、仓库id】
     *
     * @return
     */
    List<CkWarehouse> findAllCk(@Param("cName") String cName, CkWarehouse ck);

    /**
     * 查询一个
     *
     * @param id 仓库id
     * @return
     */
    CkWarehouse findByCkId(Integer id);

    /**
     * 添加
     *
     * @param ckWarehouse
     * @return
     */
    Boolean insertCk(CkWarehouse ckWarehouse);

    /**
     * 修改
     *
     * @param ckWarehouse
     * @return
     */
    Boolean updateCk(CkWarehouse ckWarehouse);


    List<CkWarehouse> selectAllFZ(@Param("widList1") List<Integer> widList1,@Param("widList2") List<Integer> widList2, Date dateMin,Date dateMax);

    List<CkWarehouse> selectByFZ(@Param("wid")Integer wid);




}